//
//  BSUIUserInfoBase+category.m
//  SuoSiApp
//
//  Created by zhang on 16/4/27.
//  Copyright © 2016年 Ym. All rights reserved.
//

#import "BSUIUserInfoBase+category.h"

@implementation BSUIUserInfoBase (category)

- (void)dealWithData:(NSData *)data{
    
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:(NSJSONReadingMutableContainers) error:nil];
    //    根据收到的data  给自己的属性 赋值
    
    NSDictionary *dataDic = [NSDictionary dictionaryWithDictionary:dic[@"Data"]];
    [self setValuesForKeysWithDictionary:dataDic];

    
    
}

//Age = 24;
//FullAddr = "<null>";
//Height = 0;
//IDCard = 34062119920921731X;
//RealName = "<null>";
//Remarks = "<null>";
//Sex = 1;
//Valid = 1;
//Weight = 0;
//ZipCode = "<

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{

    if ([key isEqualToString:@"ZipCode"]) {
        
    }

}



@end
